home *** CD-ROM | disk | FTP | other *** search
/ Champak 114 / Vol 114.iso / games / spongebo.swf / scripts / frame_61 / DoAction.as
Encoding:
Text File  |  2010-08-12  |  972 b   |  40 lines

  1. scripts.gameOverMusic.stop();
  2. menuLoopPlaying == false;
  3. stopAllSounds();
  4. loadScores = new LoadVars();
  5. loadScores.load(app.basePath + app.scorePath);
  6. loadScores.onLoad = function()
  7. {
  8.    trace("load complete");
  9.    if(this.msg == "EE")
  10.    {
  11.       if(this.text == "no scores available for that game (sb_panic)")
  12.       {
  13.          MSGtext = "Sorry, the high-score list is empty!";
  14.       }
  15.       else
  16.       {
  17.          MSGtext = "Oops, the high-score list isnΓÇÖt available right now!";
  18.       }
  19.       gotoAndStop("displayError");
  20.       play();
  21.    }
  22.    else
  23.    {
  24.       z = 0;
  25.       while(z < 100)
  26.       {
  27.          nVar = eval("this.pn" + z);
  28.          sVar = eval("this.ps" + z);
  29.          scrollVar = eval("scroller.contentMain.score" + (z + 1));
  30.          scrollVar.placeval = z + 1;
  31.          scrollVar.nameval = nVar;
  32.          scrollVar.scoreval = sVar;
  33.          z++;
  34.       }
  35.       gotoAndStop("displayScores");
  36.       play();
  37.    }
  38. };
  39. stop();
  40.